<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt"%>
<%@ taglib uri="http://displaytag.sf.net" prefix="display"%>
<%@ taglib uri="http://www.springframework.org/tags" prefix="s"%>
<%@ taglib uri="http://www.springframework.org/tags/form" prefix="form"%>
<%@ taglib uri="http://www.springframework.org/security/tags" prefix="ss"%>

<jsp:include page="../header.jsp" />
<div id="content">
	<div id="topstory" class="box">
		<h1>
			<fmt:message key="publisher.list.title" />
		</h1>
	</div>
	<div class="padding">
		<div>
			<form:form action="/find.do" commandName="publisherView" method="POST" >
				<table border="0" cellspacing="5" cellpadding="0" width="100%" class="formTable tplBorder">
					<tr>
						<td width="15%"></td>
						<td width="35%"></td>
						<td width="15%"></td>
						<td width="35%"></td>
					</tr>
					<tr>
						<td class="label"><fmt:message key="publisher.name" /></td>
						<td><form:input path="nazev" /> <form:errors path="nazev" cssStyle="color: red;" /></td>
						<td colspan="2"></td>
					</tr>
					<tr>
						<td colspan="2"><input type="submit" /></td>
					</tr>
				</table>
			</form:form>
		</div>

		<display:table export="true" name="publisherList" requestURI="/publisher.do" decorator="cz.boxdesign.library.web.decorator.PublisherDecorator"  pagesize="10">
			<ss:authorize access="hasRole('ROLE_ADMIN')">
				<display:column property="editUrl" titleKey="common.edit" sortable="false" />
			</ss:authorize>
			<display:column property="showUrl" titleKey="common.show" sortable="false" />
			<display:column property="nazev" titleKey="publisher.name" sortable="true" />
		</display:table>
	</div>
	<!-- /padding -->
</div>
<!-- /content -->
<jsp:include page="side-menu.jsp" />
<jsp:include page="../foother.jsp" />
